$(".classfiy-btn").click(function(){
		$(".classfiy-div").toggle();
});
$(".classfiy-div").click(function(){
	$(".classfiy-div").show();
});
$(window).scroll(function(){
	    if($(window).scrollTop()>170){
	      $(".form-group").addClass("form-group-line");
	      }
	      else if($(window).scrollTop()<170){
	       $(".form-group").removeClass("form-group-line");
	    }
	});
	$(window).scroll(function(event){
		$(".classfiy-div").hide();
	});
	/*判断是否在顶部  */
    $(window).scroll(function(){
    	var top=$(".floor_title ").offset().top;
    	var gun=$(window).scrollTop();
    	var top1=top-gun;
    	if(top1<=0){
    		$(".new-nav-list").addClass("new-nav-list-scroll");
    	}else{
    		$(".new-nav-list").removeClass("new-nav-list-scroll");
    	}
    });
    /*点击精品推荐添加样式*/
    $(".new-nav-list .new-nav-wrapper>div>a").click(function(){
		 $(this).addClass("active").siblings().removeClass("active");
	});
	/*点击底部图标*/
    $(".findeng").click(function(){
		$(this).next().toggle();
	});
	/*欢迎页*/
/*	$(".skip").click(function(){
		$(".welcomePic-div").hide();
		$(".index").show();
	});
	$(document).ready(function(){
	    $(".welcomePic-div").fadeOut(4000);
	    $(".index").fadeIn(1000);
	});*/
var mySwiper1 = new Swiper('.swiper-container1', {
    direction: 'horizontal',
    loop: true,
    autoplay : 3000,
    autoplayDisableOnInteraction : false,
    speed:800,
    effect : 'coverflow',
    slidesPerView: 1,
      centeredSlides: true,
    coverflow: {
        rotate: 30,
        stretch: 10,
        depth: 60,
        modifier: 2,
        slideShadows : true
    },
    pagination: '.sp1'
});
 var swiper = new Swiper('.seckill-slider', {
    slidesPerView: 3,
    paginationClickable: true,
    spaceBetween: 30,
    autoplay : 2000,
    autoplayDisableOnInteraction : false,
    loop: true,
    observer: true,
 	observeParents: true
});
var mySwiper2 = new Swiper('.swiper-container2', {
    direction: 'horizontal',
    loop: true,
    autoplay : 3000,
    autoplayDisableOnInteraction : false,
    speed:800
});
var mySwiper3 = new Swiper('.swiper-container3', {
    direction: 'horizontal',
    loop: true,
    autoplay : 4000,
    autoplayDisableOnInteraction : false,
    speed:800,
   /* effect : 'fade',
    fade: {
      crossFade: false,
    },*/
});
var mySwiper4 = new Swiper('.swiper-container4', {
    direction: 'horizontal',
    loop: true,
    autoplay : 4000,
    autoplayDisableOnInteraction : false,
    speed:800,
});
var mySwiper5 = new Swiper('.swiper-container5', {
	 direction: 'horizontal',
    loop: true,
    autoplay : 6000,
    autoplayDisableOnInteraction : false,
    speed:800,
});
var mySwiper6 = new Swiper('.swiper-container6', {
	direction: 'horizontal',
    loop: true,
    autoplay : 8000,
    autoplayDisableOnInteraction : false,
    speed:800,
});
